
#pragma once

#include "BitmapButtonEx.h"
// CEroseButton

class CEroseButton : public CBitmapButtonEx
{
private:
	//LPRGNDATA m_pRgnData;
	//DWORD m_dwRgnDataSize;
	COLORREF m_clrMask;

//	void ReleaseRgnData();
	virtual void DrawBitmap(CDC *pDC, CRect& Rect);
public:
	CEroseButton();
	virtual ~CEroseButton();

	BOOL SetBitmap(LPCTSTR lpszResource, int nImageCount, COLORREF clrMask = RGB(255, 0, 255));

protected:
	DECLARE_MESSAGE_MAP()
};


